package com.yunxin.core.application.command.order;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.io.Serializable;

/**
 * @author zero°
 * @since 2023-07-17
 */
@Data
@Schema(description = "创建用户UV订单对象")
public class CreateUserUvOrderCommand implements Serializable {

    /**
     * 用户code
     */
    @Schema(hidden = true)
    private String userCode;
    /**
     * 访问者id
     */
    @Schema(hidden = true)
    private String visitorId;

    /**
     * 手机号
     */
    private String phone;

    /**
     * 渠道推广code
     */
    @Schema(description = "渠道推广code")
    @NotBlank(message = "渠道推广code不能为空")
    private String channelPromotionCode;
    /**
     * 产品id
     */
    @Schema(description = "产品id")
    private Long productId;
    /**
     * 城市
     */
    @Schema(description = "城市")
    private String city;

    @Schema(description = "ip")
    private String clientIp;

}
